package com.onix.scalecamerapreview.translate;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HeadInterceptor implements Interceptor {
    //fe956eedb50b489281af37d41a76120f
    //dd72cf584bb446f6adf985805d550d96
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request()
                .newBuilder()
                .addHeader("Ocp-Apim-Subscription-Key", "fe956eedb50b489281af37d41a76120f")
                .addHeader("Content-Type", "application/json")
//                .addHeader("Accept-Language",LanguageUtils.getInstance().getLocalLanguage())
                .build();
        return chain.proceed(request);
    }
}
